var dbserver = require('../dao/dbserver')

// 用户搜索
exports.searchUser = (req, res) =>{
    let {data} = req.body
    console.log('searchUser',data)
    dbserver.searchUser(data,res);
}

// 判断是否为好友
exports.isFriend = (req,res) =>{
    let {uid,fid} = req.body
    dbserver.isFriend(uid,fid,res);
}

// 用户群搜索
exports.searchGroup = (req,res) => {
    let {data} = req.body
    dbserver.searchGroup(data,res);
}

// 判断在群内
exports.isInGroup =(req,res)=>{
    let {uid,gid} = req.body
    dbserver.buldUser(uid,gid,res);
}